|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.tax.hci.TaxDetailModel
public class TaxDetailModel
FOR INTERNAL USE ONLY - This class represents the tax data details generated by the SAP CC system
during the charging process for a charged transaction;
It completes the tax data (base amount, tax amount, total amount, tax code, tax status).
Internal Use Only
This class is for internal use only.
Details related to VAT system:
Details related to EZTax system:
ChargedTransactionThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="taxDetail">
<xs:complexType>
<xs:choice>
<xs:element name="eztaxDetail" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="value" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="vatDetail" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="value" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
EZTAX_AUTHORITY_LEVEL
|
static java.lang.String |
EZTAX_TAX_AMOUNT
EZTax |
static java.lang.String |
EZTAX_TAX_LOG_DATA
|
static java.lang.String |
EZTAX_TAX_TYPE
|
static java.lang.String |
VAT_BUSINESS_CATEGORY
VAT |
static java.lang.String |
VAT_TAXATION_PLACE
|
| Constructor Summary | |
|---|---|
TaxDetailModel()
Builds an empty tax detail |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
void |
addEZTaxDetail(java.lang.String name,
java.lang.String value)
Adds an EZTax tax detail associated with a value |
void |
addVatDetail(java.lang.String name,
java.lang.String value)
Adds a VAT tax detail associated with a value |
java.lang.String |
getEZTaxDetail(java.lang.String name)
Gets the description associated with the given tax detail, if exists. |
java.lang.String |
getVatDetail(java.lang.String name)
Gets the description associated with the given tax detail, if exists. |
boolean |
isValid()
Returns true if the tax data is valid; Tax data is valid if its name is not null or empty. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
java.lang.String |
toString()
Returns a string representation of the tax data detail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String EZTAX_TAX_AMOUNT
public static final java.lang.String EZTAX_TAX_TYPE
public static final java.lang.String EZTAX_AUTHORITY_LEVEL
public static final java.lang.String EZTAX_TAX_LOG_DATA
public static final java.lang.String VAT_BUSINESS_CATEGORY
public static final java.lang.String VAT_TAXATION_PLACE
| Constructor Detail |
|---|
public TaxDetailModel()
| Method Detail |
|---|
public void addEZTaxDetail(java.lang.String name,
java.lang.String value)
name - The name of the tax data detailvalue - The value associated with the given tax data detail
public void addVatDetail(java.lang.String name,
java.lang.String value)
name - The name of the tax detailvalue - The value associated with the given tax detailpublic java.lang.String getEZTaxDetail(java.lang.String name)
name - The name of the tax detail
public java.lang.String getVatDetail(java.lang.String name)
name - The name of the tax detail
public boolean isValid()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||